package demo.annotation;

import demo.annotation.serviceInterface.MyService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class TestMain {

    public static void test1()
    {
        ApplicationContext context=new ClassPathXmlApplicationContext("bean_lec03.xml");        
        MyService s=(MyService)context.getBean("service");    
        s.myInsert();
    }

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        test1();
    }
}
